﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace YiYiTong.Rocket.Model
{
    public class CreateYureOrderReq
    {
        /// <summary>
        /// 收货地址id
        /// </summary>
        public long addressid { get; set; }
        /// <summary>
        /// 支付方式 0  线下支付 1  线上支付
        /// </summary>
        public int pay_type { get; set; }
        /// <summary>
        /// 商品总金额
        /// </summary>
        public decimal total_money { get; set; }
        /// <summary>
        /// 发票 0 不开发票 >0 发票id
        /// </summary>
        public long invoice_id { get; set; }
        /// <summary>
        /// 订单备注
        /// </summary>
        public string remark { get; set; }

        public List<OrderYureDetailReq> goodlist { get; set; }
    }

    public class OrderYureDetailReq
    {
        /// <summary>
        /// 商品id
        /// </summary>
        public long goods_id { get; set; }
        /// <summary>
        /// 购买数量
        /// </summary>
        public decimal place_amount { get; set; }

        /// <summary>
        /// 磋商后的最终价格
        /// </summary>
        public decimal place_price { get; set; }
        /// <summary>
        /// 单价 * 数量
        /// </summary>
        public decimal total_money { get; set; }
    }
}
